﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WinFromMediaPlayerDemo.Model;

namespace WinFromMediaPlayerDemo.Model.EventArgs
{
    /// <summary>
    /// 当前文件下载进度改变事件参数
    /// </summary>
    public class CurrentFilePercentageChangedEventArgs : System.EventArgs
    {
        /// <summary>
        /// 文件信息
        /// </summary>
        public RemoteFileInfo FileInfo { get; set; }
        /// <summary>
        /// 进度（0-100）
        /// </summary>
        public byte Percentage { get; set; }

    }
    /// <summary>
    /// 当前文件下载完成事件参数
    /// </summary>
    public class CurrentFileCompletedEventArgs: CurrentFilePercentageChangedEventArgs
    {

    }

    /// <summary>
    /// 所有文件总体下载进度改变事件
    /// </summary>
    public class TotalFilesPercentageChangedEventArgs:System.EventArgs
    {
        /// <summary>
        /// 进度（0-100）
        /// </summary>
        public byte Percentage { get; set; }
        /// <summary>
        /// 第几个文件
        /// </summary>
        public uint FileIndex { get; set; }
        /// <summary>
        /// 文件总数
        /// </summary>
        public uint FileCount { get; set; }

    }


    public class FileDownPercentageChangedEventArgs:System.EventArgs
    {
        /// <summary>
        /// 文件信息
        /// </summary>
        public PartionFileInfo PartionFileInfo { get; set; }
        /// <summary>
        /// 当前文件进度
        /// </summary>
        public byte CurrentFilePercentage { get; set; }
        /// <summary>
        /// 所有文件总体进度
        /// </summary>
        public byte TotalFilesPercentage { get; set; }
        /// <summary>
        /// 数据
        /// </summary>
        public byte[] Data { get; set; }
        /// <summary>
        /// 分区索引
        /// </summary>

        public uint PartionIndex { get; set; }

    }

    public class SynchronizedTempFileEventArgs:System.EventArgs
    {
        /// <summary>
        /// 当前文件进度
        /// </summary>
        public byte CurrentFilePercentage { get; set; }
        /// <summary>
        /// 所有文件总体进度
        /// </summary>
        public byte TotalFilesPercentage { get; set; }
    }



}
